/**
 * Created by zhangxin on 2018/7/4.
 */
import MYCONF from '../myconf';
export default class CityMapViewCtroller {
  constructor(_view){
    this._view = _view;  //将
  }

  //获取基础设施列表
  getInfrastructureList(){
    let url = MYCONF.service.infrastListAddress;
    this._view.$http.get(url).then(
      response => {
        // success callback
        //console.log("状态是"+response.status);
        response = response.body;
        this._view.infrastructureList = response.companyCountList;
      },response => {
        // error callback
      }
    );


  }


}
